<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>修改快递员奖励</title>
<script type="text/javascript">
	function checkinput(obj){
		var str=obj.value;
		var re = /^\d+(?=\.{0,1}\d+$|$)/;
		//var re = /^\d*\.{0,1}\d*/;
        
		//非数字
		var re1=/[^\d.]/g;
		//第一个数是小数点
		var re2=/[^\d.]/g;
		//有2个小数点
		var re3=/\.{2,}/g;
		
		if (!re1.test(str) || re2.test(str) || re3.test(str)) {
            alert("请输入正确的数字");
            obj.value = "";
        }
	}
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="updateRecordRule.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> 
			<input name="id" type="hidden" size="30" class="required textInput valid" value="${supportID}"/>
			<div class="pageFormContent" layoutH="56">
				<table>
					<tr>
						<td>区  域：</td>
						<td><input type="text"  size="30"  value="${areaName}"/>
						</td>
					</tr>
				</table>
				</br>
				</br>
				</br>
				<table>
					<tr>
						<td colspan="4" align="center">
							<h2>普通件</h2>
						</td>
					</tr>
					<tr>
						<td>取件数量：</td>
						<td><input name="recordFirstNumber" type="text" size="30" class="required textInput valid" value="${common.firstNumber}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordTwoNumber" type="text" size="30" class="required textInput valid" value="${common.twoNumber}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordThreeNumber" type="text" size="30" class="required textInput valid" value="${common.threeNumber}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>一小时内：</td>
						<td><input name="recordFirstOneHourRecord" type="text" size="30" class="required textInput valid" value="${common.firstOneHourRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordTwoOneHourRecord" type="text" size="30" class="required textInput valid" value="${common.twoOneHourRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordThreeOneHourRecord" type="text" size="30" class="required textInput valid" value="${common.threeOneHourRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>1~1.5小时内：</td>
						<td><input name="recordFirstOverHalfRecord" type="text" size="30" class="required textInput valid" value="${common.firstOverHalfRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordTwoOverHalfRecord" type="text" size="30" class="required textInput valid" value="${common.twoOverHalfRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordThreeOverHalfRecord" type="text" size="30" class="required textInput valid" value="${common.threeOverHalfRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>超过一小时内：</td>
						<td><input name="recordFirstOverOneRecord" type="text" size="30" class="required textInput valid" value="${common.firstOverOneRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordTwoOverOneRecord" type="text" size="30" class="required textInput valid" value="${common.twoOverOneRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordThreeOverOneRecord" type="text" size="30" class="required textInput valid" value="${common.threeOverOneRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>恶劣天气额外奖励：</td>
						<td><input name="recordFirstAddedRecord" type="text" size="30" class="required textInput valid" value="${common.firstAddedRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordTwoAddedRecord" type="text" size="30" class="required textInput valid" value="${common.twoAddedRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="recordThreeAddedRecord" type="text" size="30" class="required textInput valid" value="${common.threeAddedRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
				</table>
				</br>
				</br>
				</br>
				<table>
					<tr>
						<td colspan="4" align="center">
							<h2>同城件</h2>
						</td>
					</tr>
					<tr>
						<td>取件数量：</td>
						<td><input name="sameCityFirstNumber" type="text" size="30" class="required textInput valid" value="${sameCity.firstNumber}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityTwoNumber" type="text" size="30" class="required textInput valid" value="${sameCity.twoNumber}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityThreeNumber" type="text" size="30" class="required textInput valid" value="${sameCity.threeNumber}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>一小时内：</td>
						<td><input name="sameCityFirstOneHourRecord" type="text" size="30" class="required textInput valid" value="${sameCity.firstOneHourRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityTwoOneHourRecord" type="text" size="30" class="required textInput valid" value="${sameCity.twoOneHourRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityThreeOneHourRecord" type="text" size="30" class="required textInput valid" value="${sameCity.threeOneHourRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>1~1.5小时内：</td>
						<td><input name="sameCityFirstOverHalfRecord" type="text" size="30" class="required textInput valid" value="${sameCity.firstOverHalfRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityTwoOverHalfRecord" type="text" size="30" class="required textInput valid" value="${sameCity.twoOverHalfRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityThreeOverHalfRecord" type="text" size="30" class="required textInput valid" value="${sameCity.threeOverHalfRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>超过一小时内：</td>
						<td><input name="sameCityFirstOverOneRecord" type="text" size="30" class="required textInput valid" value="${sameCity.firstOverOneRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityTwoOverOneRecord" type="text" size="30" class="required textInput valid" value="${sameCity.twoOverOneRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityThreeOverOneRecord" type="text" size="30" class="required textInput valid" value="${sameCity.threeOverOneRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
					<tr>
						<td>恶劣天气额外奖励：</td>
						<td><input name="sameCityFirstAddedRecord" type="text" size="30" class="required textInput valid" value="${sameCity.firstAddedRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityTwoAddedRecord" type="text" size="30" class="required textInput valid" value="${sameCity.twoAddedRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
						<td><input name="sameCityThreeAddedRecord" type="text" size="30" class="required textInput valid" value="${sameCity.threeAddedRecord}" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"/></td>
					</tr>
				</table>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div></li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div></li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>